import {
    center,
} from '@/css/DialogsCss.module.scss';
export default {
    title:'合同详情',
    dialog:{
        size:'50%'
    },
    onMounted: [{
        action: 'set',
        target: '$widgets.formbasic',
        field: 'value',
        value: '$params'
    }],
    items: [{
        region: 'center',
        span: 10,
        class: center,
        layout: 'vertical',
        items: [{
            layout: 'vertical',
            items: [{
                id: 'formbasic',
                widget: 'form',
                layout: {
                    type:'gridform',
                    column:2
                },
                fields:[{
                    itemId: 'code',
                    widget:'form-text',
                    label:'合同编号',
                },{
                    itemId: 'name',
                    widget:'form-text',
                    label:'合同名称',
                },{
                    itemId:'customer_uuid',
                    print: true,
                    widget:'select',
                    dictionary: 'common/dictionary/customer',
                    label:'客户(公司)',
                },{
                    itemId: 'category_uuid',
                    print: true,
                    widget:'select',
                    dictionary: {
                        path: 'common/dictionary/config',
                        params: {
                            name: 'crm_contract_category',
                        },
                    },
                    label:'合同类型',
                },{
                    itemId: 'status_uuid',
                    print: true,
                    widget:'select',
                    dictionary: {
                        path: 'common/dictionary/config',
                        params: {
                            name: 'crm_contract_status',
                        },
                    },
                    label:'合同状态',
                },{
                    itemId: 'operator_uuid',
                    print: true,
                    widget:'select',
                    dictionary: 'common/dictionary/salesman',
                    label:'创建人',
                },{
                    itemId: 'amount_contract',
                    widget:'form-text',
                    label:'合同金额',
                },{
                    itemId: 'amount_return',
                    widget:'form-text',
                    label:'回款金额',
                },{
                    itemId: 'amount_arrears',
                    widget:'form-text',
                    label:'欠费金额',
                },{
                    itemId: 'amount_invoice',
                    widget:'form-text',
                    label:'开票金额',
                },{
                    itemId: 'sign_time',
                    widget:'form-text',
                    label:'签订时间',
                },{
                    itemId: 'expiration_time',
                    widget:'form-text',
                    label:'到期时间',
                },{
                    itemId: 'remarks',
                    widget:'form-text',
                    label:'备注说明',
                }],
                flex: true
            }]
        }]
    }]
};


